package com.suneee.refund.dao;

import java.util.List;
import java.util.Map;

import com.suneee.orm.Dao;
import com.suneee.refund.entity.RefundApply;

public interface RefundApplyDao extends Dao<RefundApply, String> {
	/**
	 * 修改仓库状态
	 * 
	 * @param refundId
	 * @param phaseType
	 * @param feedbackStatus
	 */
	public void updatePhaseTypeByRefundId(String refundId, String status, String feedbackStatus);

	/**
	 * 修改财务操作备注
	 * 
	 * @param refundId
	 * @param cwRemark
	 */
	public void updateRwRemark(String refundId, String cwRemark);

	/**
	 * 修改财务处理结果
	 * 
	 * @param refundId
	 * @param refundResult
	 */
	public void updateRefundResult(String refundId, String refundResult);

	/**
	 * 修改财务拒绝操作备注
	 * 
	 * @param refundId
	 * @param refundApply
	 */
	public void updateRwRemarkByRefuseRemit(String refundId, RefundApply refundApply);
	
	/**
	 * 企业工作台查询订单的相关状态数据
	 * @param refundApply
	 */
	public List<Map<String, Object>> ConsoleRefundApply(RefundApply refundApply);
	
	/**
	 * 获得用于生产换货单号的字符串
	 * @param queryStr 查询字符串
	 * @return
	 */
	public Long getRefundIdStr(String queryStr);
	
	/**
	 * 获得与tid有关的退款、退货、换货申请
	 * @param tid 订单号
	 * @param skuId 商家自定义外部编码
	 * @return
	 */
	public List<RefundApply> getListByTid(String tid,String skuId);
	
	
	public String getChildAccountToken();

	/**
	 * 获得与tid有关的退款、退货、换货申请
	 * @param tid 订单号
	 * @return
	 */
	public List<RefundApply> getListByTid(String tid);
}